{* first_page_contents.tpl *}
{load_presentation_object filename="shop_first_page" assign="obj"}  
<div class="releases">  
    <div class="title">
        Latest reslease
    </div>     
    {if $obj->mLatestReleases}
        {section name=i loop=$obj->mLatestReleases}   
         <div class="release">
            <img src="{$obj->mLatestReleases[i].thumbnail}" alt="album_cover" /><br />
            {$obj->mLatestReleases[i].name}<br />
            {$obj->mLatestReleases[i].title}  
         </div>
        {/section} 
    {/if}        
    <div style="clear: both;"></div>
</div>               
<div class="releases">
    <div class="title">
        Expected reslease
    </div>
    {if $obj->mExpectedReleases}    
        {section name=i loop=$obj->mExpectedReleases}   
         <div class="release">
            <img src="{$obj->mExpectedReleases[i].cover}" alt="album_cover" /><br />
            {$obj->mExpectedReleases[i].name}<br />
            {$obj->mExpectedReleases[i].title}<br />  
            Expected: <font class="expected_date"><b>{$obj->mExpectedReleases[i].expected_date}</b></font>
         </div>
        {/section} 
    {else}
        We are not expecting any new release
    {/if}
    <div style="clear: both;"></div>
</div>                           
<div class="special_prices">
    <div class="title">
        Price killers
    </div>
    {if $obj->mSpecialDiscounts}     
        {section name=i loop=$obj->mSpecialDiscounts}   
         <div class="release">
            <img src="{$obj->mSpecialDiscounts[i].thumbnail}" alt="album_cover" /><br />
            {$obj->mSpecialDiscounts[i].name}<br />
            {$obj->mSpecialDiscounts[i].title}<br />  
            <font class="old_price">&#8364;{$obj->mSpecialDiscounts[i].price}</font> <font class="new_price"><b>&#8364;{$obj->mSpecialDiscounts[i].discounted_price}</b></font>
         </div>
        {/section}
    {else}           
        No special offers you cheap ass motherfucker. Pay full price instead!
    {/if}
</div>     